<?php

use App\controllers\UserController;

require_once __DIR__."/vendor/autoload.php";

require_once __DIR__."/app/config/define.php"; //自定义配置
\Core\BeanFactory::init();//初始化Bean工厂

$user=\Core\BeanFactory::getBean("abc"); //从IoC容器中加载出 我们所需要的Bean
// $user=\Core\BeanFactory::getBean('UserController');//类名无效
// $user=\Core\BeanFactory::getBean(UserController::class);//命名空间有效
var_dump($user);